const mongoose =require("mongoose");
const Schema=mongoose.Schema;

//Create Scahema
const FollowSchema=new Schema({
    user:{
        type: Schema.Types.ObjectId,
    },
    follow:{
        type: Schema.Types.ObjectId, ref: 'users',
        required:true,
    },
    date:{
        type:Date,
        default:Date.now
    },
})

module.exports=Follow=mongoose.model("follows",FollowSchema);